FROM 192.168.75.129:5001/k8s/ubuntu:latest

# 下载jdk 到Dockerfile 同目录
ADD openjdk-21.0.1_linux-x64_bin.tar.gz /opt/
RUN mv /opt/jdk-21.0.1 /opt/jdk
ENV JAVA_HOME="/opt/jdk"
ENV PATH=$PATH:$JAVA_HOME/bin

CMD ["java","-version"]